package com.bbf.db.multiple;

import com.bbf.db.multiple.base.CustomProperties;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;

@SpringBootApplication
@PropertySource("classpath:config/custom.properties")
@EnableConfigurationProperties({CustomProperties.class})
//不使用Mybatis的自动配置
@EnableAutoConfiguration(exclude = {MybatisAutoConfiguration.class})
@ImportResource(locations = {"classpath:config/service-conf-db.xml"})
public class Application {
  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }
}
